package com.example.mountainwalker.service.impl;

import com.example.mountainwalker.entity.StrategyLikeInfo;
import com.example.mountainwalker.mapper.StrategyLikeMapper;
import com.example.mountainwalker.service.StrategyLikeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StrategyLikeServiceImpl implements StrategyLikeService {
    @Autowired
    private StrategyLikeMapper strategyLikeMapper;

    @Override
    public List<StrategyLikeInfo> getStrategyLikeInfo() {
        return strategyLikeMapper.getStrategyLikeInfo();
    }

    @Override
    public StrategyLikeInfo getStrategyLikeInfoById(Integer id) {
        return strategyLikeMapper.getStrategyLikeInfoById(id);
    }

    @Override
    public int deleteStrategyLikeInfoById(Integer id) {
        int i = strategyLikeMapper.deleteStrategyLikeInfoById(id);
        return i;
    }

    @Override
    public int insertStrategyLikeInfo(StrategyLikeInfo strategyLikeInfo) {
        int i = strategyLikeMapper.insertStrategyLikeInfo(strategyLikeInfo);
        return i;
    }
}